package lab03.test02;

import java.io.File;

public class Test02 {
    public static void main(String[] args) {


        File file = new File("D:\\");
        file.listFiles();

        int []number = new int[5];

        for (int i = 0;i < 5;i++){
            System.out.println(number[i]);


        }
        for (File f:file.listFiles()){

            if (f.isDirectory()){

                System.out.println("目录：" + f.getName());
            }
            if (f.isFile()){
                System.out.println("文件名：" + f.getName());
            }
        }

    }
}
